package com.dongnam.quanly.common.model.enumtype;

public enum TrangThaiHoaDon {

	DANG_XU_LY("Đang xử lý"), HOAN_TAT("Hoàn Tất");

	public final String id;

	private TrangThaiHoaDon(String id) {
		this.id = id;
	}

	public static TrangThaiHoaDon getLabel(String id) {
		for (TrangThaiHoaDon obj : TrangThaiHoaDon.values()) {
			if (obj.id.equals(id)) {
				return obj;
			}
		}
		return null;
	}

	public String getValue() {
		return id;
	}

	@Override
	public String toString() {
		return id; // to be used by hibernate, just #name() to get the enum name
	}
}
